//
//  HeaderColCell.swift
//  u17Comic
//
//  Created by hujian on 2019/7/10.
//  Copyright © 2019 hujian. All rights reserved.
//

import UIKit
import LLCycleScrollView

class HeaderColCell: UICollectionViewCell {
    
    lazy var bannerView: LLCycleScrollView = {
        let bw = LLCycleScrollView()
        bw.backgroundColor = UIColor.background
        bw.autoScrollTimeInterval = 3
        bw.placeHolderImage = UIImage(named: "today_list_placeholder")
        bw.coverImage = UIImage()
        bw.imageViewContentMode = UIView.ContentMode.scaleAspectFill
        bw.pageControlPosition = .left
        bw.pageControlBottom = 20
        bw.titleBackgroundColor = UIColor.clear
        bw.pageControlCurrentPageColor = UIColor.theme
//        bw.lldidSelectItemAtIndex = didSelectBanner(index:)
        bw.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: self.frame.height)
        return bw
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(bannerView)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
